package defpackage; import cn.wps.moffice.writer.core.TextDocument; import org.xml.sax.Attributes; /* renamed from: non reason: default package */ public final class non { public TextDocument oKR; public nom pRA; public kfz pRw; public abge pRx; public kfz pRy; public int pRz = 1434631203; public non(TextDocument textDocument) { ew.assertNotNull("textDocument should not be null", textDocument); this.oKR = textDocument; this.pRw = new kfz(textDocument.oPf); } public static int LK(String str) { if ("clean".equals(str)) { return 0; } if ("dirty".equals(str)) { return 1; } ew.eI(); return 1; } public static int LL(String str) { if (str == null || "none".equals(str)) { return 7; } if ("comments".equals(str)) { return 1; } if ("forms".equals(str)) { return 2; } if ("readOnly".equals(str)) { return 3; } if ("trackedChanges".equals(str)) { return 0; } ew.eI(); return 7; } public static void a(Attributes attributes, int i, kfz kfz) { kfz.b(i, nni.aY(attributes)); } public static void b(Attributes attributes, kfz kfz) { ew.assertNotNull("dst should not be null", kfz); String a = nni.a(attributes, "val", "http://schemas.openxmlformats.org/officeDocument/2006/math"); if (a != null) { kfz.setString(598, a); } } public static void c(Attributes attributes, kfz kfz) { int i = 0; ew.assertNotNull("dst should not be null", kfz); String a = nni.a(attributes, "val", "http://schemas.openxmlformats.org/officeDocument/2006/math"); if (a != null) { if (!"before".equals(a)) { if ("after".equals(a)) { i = 1; } else if ("repeat".equals(a)) { i = 2; } else { ew.eI(); } } kfz.setInt(599, i); } } public static void d(Attributes attributes, kfz kfz) { int i = 0; ew.assertNotNull("dst should not be null", kfz); String a = nni.a(attributes, "val", "http://schemas.openxmlformats.org/officeDocument/2006/math"); if (a != null) { if (!"--".equals(a)) { if ("-+".equals(a)) { i = 2; } else if ("+-".equals(a)) { i = 1; } else { ew.eI(); } } kfz.setInt(600, i); } } public static void e(Attributes attributes, kfz kfz) { ew.assertNotNull("dst should not be null", kfz); Boolean valueOf = Boolean.valueOf(nni.aX(attributes)); if (valueOf != null) { kfz.b(601, valueOf); } } public static void f(Attributes attributes, kfz kfz) { ew.assertNotNull("dst should not be null", kfz); Boolean valueOf = Boolean.valueOf(nni.aX(attributes)); if (valueOf != null) { kfz.b(602, valueOf); } } public static void g(Attributes attributes, kfz kfz) { ew.assertNotNull("dst should not be null", kfz); Long m = nnv.m(attributes, "val"); if (m != null) { kfz.setInt(603, m.intValue()); } } public static void h(Attributes attributes, kfz kfz) { ew.assertNotNull("dst should not be null", kfz); Long m = nnv.m(attributes, "val"); if (m != null) { kfz.setInt(604, m.intValue()); } } public static void i(Attributes attributes, kfz kfz) { int i = 3; ew.assertNotNull("dst should not be null", kfz); String c = nni.c(attributes, "val"); if (c != null) { if ("center".equals(c)) { i = 2; } else if ("centerGroup".equals(c)) { i = 1; } else if (!"left".equals(c)) { if ("right".equals(c)) { i = 4; } else { ew.eI(); } } kfz.setInt(605, i); } } public static void j(Attributes attributes, kfz kfz) { ew.assertNotNull("dst should not be null", kfz); Long m = nnv.m(attributes, "val"); if (m != null) { kfz.setInt(606, m.intValue()); } } public static void k(Attributes attributes, kfz kfz) { ew.assertNotNull("dst should not be null", kfz); Long m = nnv.m(attributes, "val"); if (m != null) { kfz.setInt(607, m.intValue()); } } public static void l(Attributes attributes, kfz kfz) { ew.assertNotNull("dst should not be null", kfz); Long m = nnv.m(attributes, "val"); if (m != null) { kfz.setInt(608, m.intValue()); } } public static void m(Attributes attributes, kfz kfz) { ew.assertNotNull("dst should not be null", kfz); Long m = nnv.m(attributes, "val"); if (m != null) { kfz.setInt(609, m.intValue()); } } public static void n(Attributes attributes, kfz kfz) { ew.assertNotNull("dst should not be null", kfz); Long m = nnv.m(attributes, "val"); if (m != null) { kfz.setInt(610, m.intValue()); } } public static void o(Attributes attributes, kfz kfz) { ew.assertNotNull("dst should not be null", kfz); Boolean valueOf = Boolean.valueOf(nni.aX(attributes)); if (valueOf != null) { kfz.b(611, valueOf); } } public static void p(Attributes attributes, kfz kfz) { int i = 0; ew.assertNotNull("dst should not be null", kfz); String a = nni.a(attributes, "val", "http://schemas.openxmlformats.org/officeDocument/2006/math"); if (a != null) { if (!"subSup".equals(a)) { if ("undOvr".equals(a)) { i = 1; } else { ew.eI(); } } kfz.setInt(612, i); } } public static void q(Attributes attributes, kfz kfz) { int i = 1; ew.assertNotNull("dst should not be null", kfz); String a = nni.a(attributes, "val", "http://schemas.openxmlformats.org/officeDocument/2006/math"); if (a != null) { if ("subSup".equals(a)) { i = 0; } else if (!"undOvr".equals(a)) { ew.eI(); } kfz.setInt(613, i); } } public void bG(Attributes attributes) { if (this.pRA == null) { this.pRA = new nom(); } nom nom = this.pRA; ew.assertNotNull("attributes should not be null", attributes); nom.pRs = nni.aV(attributes); nom.pRt = nni.c(attributes, "lang"); } public void bH(Attributes attributes) { if (this.pRA == null) { this.pRA = new nom(); } nom nom = this.pRA; ew.assertNotNull("attributes should not be null", attributes); nom.pRu = nni.aV(attributes); nom.pRv = nni.c(attributes, "lang"); } public void dXB() { this.pRy = new kfz(); } public void r(Attributes attributes, kfz kfz) { if (-1917338065 == this.pRz) { String aV = nni.aV(attributes); if ("docEnd".equals(aV)) { kfz.h(641, 3); } else if ("sectEnd".equals(aV)) { kfz.h(641, 0); } else { ew.eI(); } this.pRz = 1434631203; } } }